package com.dlut.txy.designpattern.listener.impl;


import com.dlut.txy.designpattern.listener.ConsumeResult;
import com.dlut.txy.designpattern.listener.event.QrcodeStatusModifyEvent;

public class QrcodeStatusModifyListenerImpl implements QrcodeStatusModifyListener{
    @Override
    public ConsumeResult consumeCreated(QrcodeStatusModifyEvent.Created created) {
        System.out.println("消费二维码状态变更事件-新生成 "+created);
        return ConsumeResult.buildSuccess();
    }

    @Override
    public ConsumeResult consumeScanned(QrcodeStatusModifyEvent.Scanned scanned) {
        System.out.println("消费二维码状态变更事件-已扫码 "+ scanned);
        return ConsumeResult.buildSuccess();
    }

    @Override
    public ConsumeResult consumeExpired(QrcodeStatusModifyEvent.Expired expired) {
        System.out.println("消费二维码状态变更事件-已过期 "+ expired);
        return ConsumeResult.buildSuccess();
    }
}
